/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.prft.rms.jsf;

import javax.faces.event.PhaseEvent;
import javax.faces.event.PhaseId;
import javax.faces.event.PhaseListener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 * @author cairns.ma
 */
public class PhaseBean implements PhaseListener {

    Logger logger = LoggerFactory.getLogger(PhaseBean.class);

    /** Creates a new instance of UserBean */
    public PhaseBean() {
    }

    public void afterPhase(PhaseEvent event) {
        System.out.println("after phase" + event.getPhaseId().toString());
    }

    public void beforePhase(PhaseEvent event) {
        System.out.println("before phase" + event.getPhaseId().toString());
    }

    public PhaseId getPhaseId() {
		return PhaseId.RENDER_RESPONSE;
    }
}
